package com.fengye.redisson.star.service;

import com.fengye.redisson.star.domain.Praise;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fengye.redisson.star.dto.PraiseDTO;
import com.fengye.redisson.star.dto.PraiseRankDTO;

import java.util.Collection;

/**
 *
 */
public interface PraiseService extends IService<Praise> {

    void addPraise(PraiseDTO dto) throws Exception;

    void addPraiseWithLock(PraiseDTO dto) throws Exception;

    Long getBlogPraiseTotal(Integer blogId) throws Exception;

    void cancelPraise(PraiseDTO dto) throws Exception;

    Collection<PraiseRankDTO> getRankWithRedisson() throws Exception;
}
